#define _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"

int main()
{
	st stack;
	STInit(&stack);
	STPush(&stack, 1);
	STPush(&stack, 2);
	STPush(&stack, 3);
	STPush(&stack, 4);
	while (!STEmpty(&stack))
	{
		printf("%d ", STTop(&stack));
		STPop(&stack);
	}
	STDestroy(&stack);
	return 0;
}